﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Xml.Serialization;

namespace WebService1
{
    /// <summary>
    /// Description résumée de Service1
    /// </summary>
    [WebService(Namespace = "http://sdf.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        [XmlInclude(typeof(Troll))]  
        public Troll HelloWorld()
        {
            return new Troll();
        }

        [WebMethod]
        public int HelloWorld2()
        {
            return 2;
        }
    }
}